package com.cet.base;

/**
 * @program: cet-practice
 * @description:
 * @author: 陈恩涛
 * @create: 2023-03-24 17:47
 **/
public class ValueTransferAndRefTransfer {

    public static void main(String[] args) {
        StringBuffer a = new StringBuffer("A");
        StringBuffer b = new StringBuffer("B");
        operater(a,b);

        System.out.println(a+" "+b);

    }


    public static void operater(StringBuffer x, StringBuffer y) {

        x.append(y);
        y = x;
    }
}
